import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import Nav from "@/components/Nav.vue";
import Layout from "./components/Layout.vue";
import Icon from "./components/Icon.vue";
import Button from "./components/Button.vue";

Vue.config.productionTip = false;
Vue.component("Nav", Nav);
Vue.component("Layout", Layout);
Vue.component("Icon", Icon);
Vue.component("Button", Button);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");

const clientWidth = document.documentElement.clientWidth;
if (clientWidth > 762) {
  window.alert("为确保使用效果，建议在手机上浏览使用");
}
